@extends('admin.layout')

@section('content')
<script>
$(document).ready(function(){
 //tab
 $(".admin_tab li a").click(function(){
  var liindex = $(".admin_tab li a").index(this);
  $(this).addClass("active").parent().siblings().find("a").removeClass("active");
  $(".admin_tab_cont").eq(liindex).fadeIn(150).siblings(".admin_tab_cont").hide();
 });
 });
</script>
<section>
<ul class="admin_tab">
<li><a class="active">基本设置</a></li>
<li><a>其他设置</a></li>
<li><a>额外</a></li>
</ul>
<!--tabCont-->
<div class="admin_tab_cont" style="display:block;">
     <section>
      <ul class="ulColumn2">
      <form action="{{route('editwebconfig')}}" method="POST">
       <li>
        <span class="item_name" style="width:120px;">论坛名称：</span>
        <input type="text" class="textbox textbox_295" name="title" value="{{$config->title}}" placeholder="版块名称"/>
       </li>
       <li>
        <span class="item_name" style="width:120px;">是否开启：</span>
        <label class="single_selection"><input type="radio" name="is_on" value="1" {{$config->is_on == 1?'checked="checked"':''}} />是</label>
        <label class="single_selection"><input type="radio" name="is_on" value="0" {{$config->is_on == 0?'checked="checked"':''}} />否</label>
       </li>
       <li>
        <span class="item_name" style="width:120px;">开放注册：</span>
        <label class="single_selection"><input type="radio" name="reg_on" value="1" {{$config->reg_on == 1?'checked="checked"':''}} />是</label>
        <label class="single_selection"><input type="radio" name="reg_on" value="0" {{$config->reg_on == 0?'checked="checked"':''}} />否</label>
       </li>
       <li>
        <span class="item_name" style="width:120px;">关键字：</span>
        <input type="text" class="textbox textbox_295" name="keyword" placeholder="版块关键字" value="{{$config->keyword}}" />
       </li>
       <li>
        <span class="item_name" style="width:120px;">描述：</span>
        <input placeholder="版块描述信息" class="textbox textbox_225" name="description" value="{{$config->description}}" style="width:500px;height:100px;" />
       </li>
       <li>
        <span class="item_name" style="width:120px;">LOGO：</span>
        <label class="uploadImg">
         <input type="file"/>
         <span>上传图片</span>
        </label>
       </li>
       <li>
        <span class="item_name" style="width:120px;"></span>
        <input type="submit" class="link_btn"/>
       </li>
       <input type="hidden" name="id" value="1" />
       	{!! csrf_field() !!}
       </form>
      </ul>
     </section>
</div>
<div class="admin_tab_cont">tabContent02，内容根据具体数据二次单独定义，公共样式单独调用</div>
<div class="admin_tab_cont">可追加</div>
</section>
@endsection